const mongoose = require('mongoose');
const { Schema } = mongoose;

const employeeInfoSchame = new Schema({
  id: String,//员工编号
  name: String, // 姓名
  age: Number,//年龄
  sex: String, // 性别
  birthday: String, // 出生日期
  cid: String, // 身份证
  phone: String, // 电话
  joinTime: Date, // 入职时间
  type: String,//员工类型
  baseWage: Number,//基础工资
  address: String//地址
});

const employeeInfoModel = mongoose.model('employee',employeeInfoSchame);

module.exports = employeeInfoModel;